package com.chuangshi.core.vote.member.controller.admin.request;

import com.chuangshi.core.kit.Request;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;

/**
 * 会员管理端V1获取列表的接收参数
 *
 * @author marcus
 * @date 2018-11-20
 */
@ApiModel(description = "会员管理端V1获取列表的接收参数")
public class MemberAdminV1ListRequest extends Request {

    @ApiModelProperty(value = "会员编号", required = true, position = 1)
    @Length(max = 32, message = "会员编号长度超出限制")
    private String memberId;

    @ApiModelProperty(value = "产品编号", required = true, position = 2)
    @NotNull(message = "产品编号不能为空")
    @Length(max = 32, message = "产品编号长度超出限制")
    private String productId;

    @ApiModelProperty(value = "手机号码", required = true, position = 3)
    @Length(max = 11, message = "手机号码长度超出限制")
    private String memberMobile;

    @ApiModelProperty(value = "昵称", required = true, position = 4)
    @Length(max = 100, message = "昵称长度超出限制")
    private String memberNickName;

    @ApiModelProperty(value = "来源", required = true, position = 5)
    @Length(max = 25, message = "来源长度超出限制")
    private String memberFrom;

    @ApiModelProperty(value = "当前页数", required = true, position = 6)
    @NotNull(message = "当前页数不能为空")
    @Digits(integer = 11, fraction = 0, message = "分页页数长度超出限制")
    private Integer pageIndex;

    @ApiModelProperty(value = "每页显示的记录数", required = true, position = 7)
    @NotNull(message = "每页显示的记录数不能为空")
    @Digits(integer = 11, fraction = 0, message = "每页显示的记录数长度超出限制")
    private Integer pageSize;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getMemberMobile() {
        return memberMobile;
    }

    public void setMemberMobile(String memberMobile) {
        this.memberMobile = memberMobile;
    }

    public String getMemberNickName() {
        return memberNickName;
    }

    public void setMemberNickName(String memberNickName) {
        this.memberNickName = memberNickName;
    }

    public String getMemberFrom() {
        return memberFrom;
    }

    public void setMemberFrom(String memberFrom) {
        this.memberFrom = memberFrom;
    }


    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

}